package com.thread.extendsThread;

/**
 * @Author milian
 * @Date 2021/7/28 0028 15:05
 */
public class MyThreadDemo {
    public static void main(String[] args) {
        MyThread my1 = new MyThread("飞机");
        MyThread my2 = new MyThread();
        my2.setName("坦克");
        my2.setDaemon(true);
        my1.start();
        my2.start();
        System.out.println(Thread.currentThread().getName());
    }
}
